package com.impetus.project.skilltest.core;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;

public class SkillTestException extends Exception{
	private static final long serialVersionUID = 2238665031855587117L;
	final String NEW_LINE = System.getProperty("line.separator");
	
	public SkillTestException(String msg){
		super(msg);
	}
	public SkillTestException(String msg, Throwable t){
		super(msg, t);
	}
	public SkillTestException(Throwable t){
		super(t);
	}
	
	public String getStackTraceAsString(){
		final Writer result = new StringWriter();
	    final PrintWriter printWriter = new PrintWriter(result);
	    printStackTrace(printWriter);
	    return result.toString();
	}
}
